﻿using System;
using NPoco;

namespace Blog.Core
{
    public class DbService : Database
    {
        public DbService() : base("Sqlite") { }

        public static DbService GetInstance()
        {
            if (_instance == null)
                _instance = new DbService();
            return _instance;
        }

        [ThreadStatic]
        static DbService _instance;
    }
}
